package com.yantu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.redis.core.RedisTemplate;
@EnableCaching
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@SpringBootApplication
@MapperScan(basePackages = "com.yantu.mapper")
public class YantuDemoApplication {

    @Autowired
    private RedisTemplate redisTemplate;
    //注入自定义的redisTemplate
    public static void main(String[] args) {
        SpringApplication.run(YantuDemoApplication.class, args);
    }

}
